/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package common;

import java.util.ResourceBundle;
/**
 *
 * @author KIENLT
 */
public class Constant {
    private static ResourceBundle Bundle;
    
    private static Integer Language = 1; // 0: English - 1: Vietnames
    
    public static void initBundle(){
        if(getLanguage() == 0){
            setBundle(ResourceBundle.getBundle("Language.EN"));
        }
        if(getLanguage() == 1){
            setBundle(ResourceBundle.getBundle("Language.VN"));
        }
    }   

    /**
     * @return the Language
     */
    public static Integer getLanguage() {
        return Language;
    }

    /**
     * @param aLanguage the Language to set
     */
    public static void setLanguage(Integer aLanguage) {
        Language = aLanguage;
    }

    /**
     * @return the Bundle
     */
    public static ResourceBundle getBundle() {
        return Bundle;
    }

    /**
     * @param aBundle the Bundle to set
     */
    public static void setBundle(ResourceBundle aBundle) {
        Bundle = aBundle;
    }
    
    
}
